package asinoai.UTemplates.Main;

import asinoai.UTemplates.Configuration.ConfigurationManager;
import asinoai.UTemplates.Runtime.MainPropertiesHelper.PropertyItem;
import asinoai.UTemplates.Runtime.RuntimeManager;

public class MainManager {

	private static final MainManager instance;
	private final ConfigurationManager configurationManager;
	private final RuntimeManager runtimeManager;
	static {
		instance = new MainManager();
	}

	private MainManager() {
		configurationManager = new ConfigurationManager();
		
		runtimeManager = new RuntimeManager();
		runtimeManager.setConfigurationManager(configurationManager);
		
	}

	public static MainManager get() {
		return instance;
	}
	
	public void setCommandLineArguments(String[] args) {
		runtimeManager.setCommandLineArguments(args);
	}

	public ConfigurationManager getConfigurationManager() {
		return configurationManager;
	}

	public void startUp() {
		runtimeManager.update();
	}
}
